
public class HeartAdapter implements IBeatModel 
{
	IHeartModel heart;
	
	public HeartAdapter(IHeartModel heart)
	{
		this.heart = heart;
	}
	
	public void initialize()
	{		
	}
	public void on()
	{		
	}
	public void off()
	{		
	}
	public void setBPM(int bpm)
	{
	}
	public int getBPM()
	{
		return heart.getHeartRate();
	}
	public void registerObserver(IBeatObserver o)
	{
		heart.registerObserver(o);
	}
	public void removeObserver(IBeatObserver o)
	{
		heart.removeObserver(o);
	}
	public void registerObserver(IBPMObserver o)
	{
		heart.registerObserver(o);
	}
	public void removeObserver(IBPMObserver o)
	{
		heart.removeObserver(o);
	}
}
